package sy.model;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

import javax.persistence.*;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
/**
 * 
 *
 */
@Entity
@Table(name = "tstorer")
@DynamicInsert(true)
@DynamicUpdate(true)
public class Tstorer implements java.io.Serializable {
 
	private String id;

	private String code;

	private String name;

	private Date createTime;

	private String remark;

	private String address;

	private String tel;

	private String type;
    //邮箱
    private String email;

    private Tstorer storer;

    
	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getAddress() {
		return address;
	}

	public String getCode() {
		return code;
	}

	public Date getCreateTime() {
		return createTime;
	}

	@Id
	@Column(name = "ID", nullable = false, length = 36)  
	public String getId() {
		return this.id;
	}

	public String getName() {
		return this.name;
	}

	public String getRemark() {
		return remark;
	}

	public String getType() {
		return type;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public void setId(String id) {
		this.id = id;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "PID")
	public Tstorer getStorer() {
		return storer;
	}

	public void setStorer(Tstorer storer) {
		this.storer = storer;
	}
}
